package com.zjstudio.gitee5j.config;

import com.gitee.sdk.gitee5j.ApiClient;
import com.gitee.sdk.gitee5j.Configuration;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class GiteeAccountConfig {


    @PostConstruct
    public void init(){
        String basePath =  "https://gitee.com/api/v5";

        ApiClient apiClient = Configuration.getDefaultApiClient();
        apiClient.setBasePath(basePath);
        apiClient.setAccessToken(ACCESS_TOKEN);
    }

    public static final String ACCESS_TOKEN = "28026e98d5c06489a5856ecd0ea84648";
    public static final String USER = "jarvis-zeng";
    public static final String USER_REPO = "git-demo";
    public static final String USER_BRANCH = "master";
    public static String FILE_PATH = "zengjun-web.json";
    public static final String USERNAME = "zengjun";
    public static final String EMAIL = "16379979@qq.com";
    public static final String MSG = "zengjun-web auto commit";


}
